"
I announce a selection change (usually a click, but can also be done with arrows up and down).

Description
-------------------

I store the old selected rows and the new selected row. 
I should be use to act with the user when he interact with a Fast Table.

Public API and Key Messages
-------------------

- #from: arrayOfIndexes to: arrayOfIndexes 		is the commun constructor.
 
Internal Representation and Key Implementation Points.
------------------

    Instance Variables
	newSelectedRowIndexes:		An array of indexes that store the new selection.
	oldSelectedRowIndexes:		An array of indexes that store the old selection.
			
From the index you can get an object from the FTTableMorph with: 

aFTTableMorph dataSource elementAt: selectedRowIndex 
"
Class {
	#name : 'FTSelectionChanged',
	#superclass : 'FTAnnouncement',
	#instVars : [
		'newSelectedIndexes',
		'oldSelectedIndexes'
	],
	#category : 'Morphic-Widgets-FastTable-Announcement',
	#package : 'Morphic-Widgets-FastTable',
	#tag : 'Announcement'
}

{ #category : 'instance creation' }
FTSelectionChanged class >> from: oldArray to: newArray [
	^ self new
		oldSelectedIndexes: oldArray;
		newSelectedIndexes: newArray;
		yourself
]

{ #category : 'accessing' }
FTSelectionChanged >> newSelectedIndexes [
	^ newSelectedIndexes
]

{ #category : 'accessing' }
FTSelectionChanged >> newSelectedIndexes: anObject [
	newSelectedIndexes := anObject
]

{ #category : 'accessing' }
FTSelectionChanged >> oldSelectedIndexes [
	^ oldSelectedIndexes
]

{ #category : 'accessing' }
FTSelectionChanged >> oldSelectedIndexes: anObject [
	oldSelectedIndexes := anObject
]
